package com.abc.service.impl;

import com.abc.entity.User;
import com.abc.service.IUserService;
import com.abc.service.ex.InsertException;
import com.abc.service.ex.UsernameDuplicateException;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

    @Override
    public void reg(User user) throws UsernameDuplicateException, InsertException {
        System.out.println(111);
        throw new UsernameDuplicateException("用户名重复");
    }
}
